NET MESSAGE BITMAP

This command will return a bitmap from the current net message.

  Syntax
NET MESSAGE BITMAP Bitmap Number
  Parameters
Bitmap Number
Integer
The bitmap number

  Returns

This command does not return a value.

  Description

The net message must be of the bitmap type or the command will fail. You can determine the type using the NET MESSAGE TYPE command.

  Example Code
rem Network game can communicate sounds, images and 3D data
while inkey$()<>"z"
cls
print "HANDLE ADVANCED NET MESSAGES (Press Z To Continue)"
print "SENDING..."
GuarenteePacket=1
load bitmap "face.bmp", 1
send net message bitmap 0, 1, GuarenteePacket
delete bitmap 1
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
ReturnTo=net message player to()
ReturnFrom=net message player from()
if net message type()=6
net message bitmap 1
endif
get net message
endwhile
endwhile
  See also

MULTIPLAYER Commands Menu
Index